{% extends "bash.html" %}
{% load static %}
{% block content %}
    <!-- 下载表单 -->

    <div>
        <div class="input-group line left">
            <span class="input-group-addon" id="basic-addon2"><i class="icon-edit"></i></span>
            {{ infos.t }}
        </div>
        <button class="btn btn-primary" onclick=dowload()><span class="glyphicon glyphicon-download" ></span></button>>
    </div>

{% endblock %}
{% block script %}
    function dowload(){
        var in_tab = $("#sel_table option:selected").text();
        $.post("{% url 'index:dowload' %}",{'t':in_tab},function(data,status){
            window.location.href = "{% url 'index:excelDowload' %}";
        });

    }
{% endblock script %}